package com.parent.feign.demo;

import org.springframework.web.bind.annotation.RestController;

/**
 * controller:需要创建一个controller类实现DeviceFeignClient 接口，内部通过反射实现接口中的url请求
 * @author yan
 * @date 2023/4/13 0013 15:28
 */
@RestController
public class DeviceClientController implements DeviceFeignClient {

/*    @Resource
    private OrikaBeanMapper orikaBeanMapper;

    @Resource
    private DeviceService deviceService;

    @Override
    public SerializableResult<DeviceInfoOutVo> deviceInfo(DeviceOutDto deviceOutDto) throws Exception {
        TpDevice deviceInfo = deviceService.getDeviceInfoById(deviceOutDto.getDeviceId());
        DeviceInfoOutVo deviceInfoOutVo = orikaBeanMapper.map(deviceInfo,DeviceInfoOutVo.class);
        return ResultViewUtil.genSuccessSerializableResult(deviceInfoOutVo);
    }*/
}
